<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>旋转效果rotate</title>
    <style>
        @keyframes xiaokeai {
            25% {
                transform: rotate(45deg);
            }
            50% {
                transform: rotate(90deg);
            }
            75% {
                transform: rotate(180deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        
        @keyframes hezi {
            25% {
                left: 100px;
                top: 100px;
            }
            50% {
                left: 100px;
                top: 200px;
            }
            75% {
                left: 0px;
                top: 200px;
            }
            100% {
                left: 0px;
                top: 0px;
            }
        }
        
        div {
            position: absolute;
            width: 400px;
            height: 400px;
            border-radius: 200px;
            /* border: 1px solid pink; */
            /* margin: 100px auto; */
            text-align: center;
            animation: hezi 5s;
            animation-iteration-count: infinite;
        }
        
        img {
            width: 300px;
            height: 300px;
            animation: xiaokeai 1s;
            /* 永久的效果 */
            animation-iteration-count: infinite;
        }
    </style>
</head>

<body>
    <div>
        <img src="./pic.jpg" alt="55555" />
    </div>
</body>

</html>